package com.tomecode.tools.maven.settings.model;

/**
 * This is the file specification used to activate a profile. The missing value
 * will be a the location of a file that needs to exist, and if it doesn't the
 * profile must run. On the other hand exists will test for the existence of the
 * file and if it is there will run the profile.
 * 
 * @author Tomas Frastia
 * @see http://www.tomecode.com or
 *      http://code.google.com/p/maven-settings-editor/
 * 
 */
public final class File {
	/**
	 * The name of the file that should exist to activate a profile.
	 */
	private String exists;
	/**
	 * The name of the file that should be missing to activate a profile.
	 */
	private String missing;

	public File() {

	}

	/**
	 * Copy exists {@link File} to new {@link File}
	 * 
	 * @param file
	 */
	public File(File file) {
		this.exists = file.getExists();
		this.missing = file.getMissing();
	}

	public final String getExists() {
		return exists;
	}

	public final void setExists(String exists) {
		this.exists = exists;
	}

	public final String getMissing() {
		return missing;
	}

	public final void setMissing(String missing) {
		this.missing = missing;
	}

}
